﻿ul {
    list-style: none;
    padding-left: 0;
}
/*CONTENIDO*/
#home-contenido {
    height: auto;
    border-radius: 10px;
    background-color: white !important;
    padding: 2rem;
    height: auto;
}

#contenido {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/*INFORMES*/
#informes {
    margin-top: 2rem;
    margin-left: -05px;
}

#home-informes {
    border-radius: 10px;
    padding: 10px;
    background-color: white !important;
}

#home-descargas {
    border-radius: 10px;
    padding: 10px;
    background-color: white !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.color {
    background-color: #559C52;
    padding: 5px;
    border-radius: 10px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
}

/*Descargas*/

.descarga {
    display: block; /* Que ocupe todo el ancho posible */
    padding: 10px 15px; /* Espacio interno para la franja */
    color: inherit; /* Color texto por defecto */
    text-decoration: none; /* Sin subrayado */
    background-color: transparent;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    transition: all 0.3s ease;
}


    /* Hover: cuando pasas el mouse */
    .descarga:hover {
        background-color: rgba(85, 156, 82, 0.2); /* Fondo verde */
        color: #559C52 !important; /* Texto verde claro (ajusta como quieras) */
        border-left-color: #559C52 !important; /* Franja verde oscura izquierda */
        border-right-color: #559C52 !important; /* Franja verde oscura derecha */
    }

        /* Para que el texto <p> tome el color del enlace */
        .descarga:hover p {
            color: #559C52 !important;
        }

        /* Para que el ícono también cambie */
        .descarga:hover i {
            color: #559C52 !important;
        }

a {
    text-decoration: none;
}


/*MENU (Oferta academica)*/
#home-menu {
    padding: 2rem;
    text-align: center;
}

#menu {
    border: 1px solid #bb4b26;
    margin-bottom: 2rem;
}

.menu {
    color: #404040 !important;
}

.span {
    color: #bb4b26;
}

.titulo {
    background-color: #bb4b26;
    padding: 5px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
}

.enlaces a {
    text-decoration: none;
    padding: 13px;
}

    .enlaces a:hover {
        text-decoration: underline; /* aparece subrayado */
        text-decoration-color: #bb4b26;
        color: black !important;
        background-color: rgba(187, 75, 38, 0.2);
    }


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    width: 50%;
    /*max-width: 700px;*/
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 45px;
    right: 2.5%;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.zoomIn {
    position: absolute;
    top: 13px;
    left: 15%;
    color: #f1f1f1;
    font-size: 80px;
    font-weight: bold;
    transition: 0.3s;
}

.zoomOut {
    position: absolute;
    top: 13px;
    left: 35%;
    color: #f1f1f1;
    font-size: 80px;
    font-weight: bold;
    transition: 0.3s;
}

.expand {
    position: absolute;
    top: 46px;
    left: 55%;
    color: #f1f1f1;
    font-size: 39px;
    font-weight: bold;
    transition: 0.3s;
}

.contract {
    position: absolute;
    top: 46px;
    left: 75%;
    color: #f1f1f1;
    font-size: 39px;
    font-weight: bold;
    transition: 0.3s;
}

    .close:hover,
    .close:focus,
    .zoomIn:hover,
    .zoomIn:focus,
    .zoomOut:hover,
    .zoomOut:focus,
    .expand:hover,
    .expand:focus,
    .contract:hover,
    .contract:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

    #myImg:hover {
        opacity: 0.7;
    }

/* Tooltip */
.box {
    position: relative;
}

#tooltip {
    width: 180px;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: fixed;
    display: block;
    opacity: 0;
    visibility: hidden;
    background: #559C52;
    color: #fff;
    padding: 5px 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,.15);
}

    #tooltip::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 100%;
        margin-top: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent #559C52 transparent transparent;
    }

.box:hover #tooltip {
    opacity: 1;
    visibility: visible;
}